//
//  WalletDetailsCell.m
//  SafPay
//
//  Created by 贺庆博 on 2018/6/19.
//  Copyright © 2018年 ebo. All rights reserved.
//

#import "WalletDetailsCell.h"

@implementation WalletDetailsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(WalletCoinModel *)model
{
    _model = model;
    NSString *str;
    if([model.type isEqualToString:@"1"]){
        
        str=@"转入";
        self.numLab.text = [NSString stringWithFormat:@"+%@",model.coin_number];
    }else{
        
        str=@"转出";
        self.numLab.text = [NSString stringWithFormat:@"-%@",model.coin_number];
    }
    self.statusLab.text = [model.coin_species stringByAppendingString:str];
    self.timeLab.text = model.created_at;
    
    if(model.coin_cny_num.length!=0){
        
        self.cnyLab.text = [@"¥ " stringByAppendingString:model.coin_cny_num];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
